CXX=g++
FLAGS=-O2 -Wall -std=c++11
objects=sort.out search.out

all: $(objects)

$(objects): %.out: %.cpp
	$(CXX) $(FLAGS) $< -o $@

.PONY: clean
clean:
	-rm -f $(objects)